<template>
    <div class="demo4">
        <!-- 头部 -->
        <!-- <div class="header">
            <x-icon type="ios-arrow-left" size="" class="icon-white" @click="$router.go(-1)"></x-icon>检查区域
        </div> -->
        <!-- 内容部分 -->
        <div class="demo4_main">
            <div class="list3Box">
                <group>
                     <x-textarea :max="200" name="description" placeholder="请输入" v-model="checkArea"></x-textarea>
                </group>
                <div class="btn">
                    <em @click="checkArea=''">清空</em>
                    <span @click="enter">确定</span>
                </div>
            </div>
        </div>
        <myMenu @clickBack="back"></myMenu>
    </div>
</template>
<script>
import { XTextarea, Group } from 'vux'
import myMenu from '@/commonComponents/menu'
export default {
  components: {
    XTextarea,
    Group,
    myMenu
  },
  data (){
      return {
          checkArea:''
      }
  },
  mounted(){
      this.checkArea=this.$route.query.checkArea
  },
  methods: { 
      back(){

      },
    enter(){
        if (this.checkArea){
            window.sessionStorage.setItem('checkArea',this.checkArea)
        } else {
            window.sessionStorage.setItem('checkArea','')
        }
        
        this.$router.go(-1)
    }
  }
}

</script>
<style lang="less">
.demo4{
    width: 100%;
    height: 100%;
    .header{
        width: 100%;
        height: 40px;
        line-height: 40px;
        text-align: center;
        position: relative;
        font-size: 18px;
        background: #2269ff;
        color: #fff;
        .vux-x-icon{
            fill:cornsilk;
            position: absolute;
            left: 0;
            top: 5px;
            width: 30px;
            height: 30px;
        }
    }
    .demo4_main{
        height: 603px;
        width: 100%;
        background-color: #ebeef2;
        .list3Box{
            width: 100%;
            height: 603px;
            background-color: #fff;
            .vux-x-textarea{
                width: 92%;
                // height: 300px;
                margin: 0 auto;
                padding: 0;
            }
            .weui-cell__bd{
                border: 1px solid #333;
                height: 230px;
            }
            .weui-textarea{
                height: 206px;
            }
            .btn{
                width: 100%;
                height: 30px;
                margin-top: 20px;
                span,em{
                    width: 50px;
                    height: 28px;
                    line-height: 28px;
                    text-align: center;
                    float: right;
                    margin-right: 20px;
                    border-radius: 5px;
                }
                em{
                    border: 1px solid coral;
                    color: coral;
                }
                span{
                    border: 1px solid #2269ff;
                    color: #333;
                }
            }
        }
    }
    .weui-cells:before{
        border-top:0;
    }
    .weui-cells:after{
        border-bottom: 0;
    }
}
</style>
